package com.topideal.supplychain.hades.master.service.impl;

import com.topideal.supplychain.hades.master.mapper.UserMapper;
import com.topideal.supplychain.hades.master.model.User;
import com.topideal.supplychain.hades.master.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户
 *
 * @author xuxiaoyan
 * @date 2018-09-19 16:54
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    /**
     * 根据userkey或中文名/英文名搜索
     *
     * @param query
     * @return
     */
    @Override
    public List<User> selectByQuery(String query) {
        return userMapper.selectByQuery(query);
    }
}
